package net.zhengxinyun.performance.service.exam.select;

import net.zhengxinyun.performance.entity.SelectIonEntity;
import net.zhengxinyun.performance.filter.SelectionFilter;
import net.zhengxinyun.performance.mapper.exam.selectOp.SelectionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class SelectionServiceImpl implements SelectionService {

    @Autowired
    private SelectionMapper selectionMapper;

    @Override
    public List<SelectionFilter> query(SelectionFilter filter) {
        return selectionMapper.query(filter);
    }

    @Override
    public int queryForCount(SelectionFilter filter) {
        return selectionMapper.queryForCount(filter);
    }

    @Override
    public SelectIonEntity selectByPrimaryKey(Long id) {
        return selectionMapper.selectByPrimaryKey(id);
    }

    @Override
    public int deleteByPrimaryKey(Long ind) {
        return selectionMapper.deleteByPrimaryKey(ind);
    }

    @Override
    public int insert(SelectIonEntity entity) {
        return selectionMapper.insert(entity);
    }

    @Override
    public int insertSelective(SelectIonEntity entity) {
        return selectionMapper.insertSelective(entity);
    }

    @Override
    public int updateByPrimaryKeySelective(SelectIonEntity entity) {
        return selectionMapper.updateByPrimaryKeySelective(entity);
    }

    @Override
    public int updateByPrimaryKey(SelectIonEntity entity) {
        return selectionMapper.updateByPrimaryKey(entity);
    }
}
